package com.boarsoft.boar;

import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CommonConfig {
	private final static Logger log = LoggerFactory.getLogger(CommonConfig.class);
	private final static Properties prop = new Properties();

	static {
		try {
			log.info("Load boar-base config.properties ...");
			prop.load(CommonConfig.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			log.error("Error on load config.properties.", e);
		}
	}

	// 短信发送URL，为空表示不发短信
	public final static String SMS_URL = prop.getProperty("SMS.URL");
}